package scf.demo.dto;

import io.swagger.v3.oas.annotations.media.ArraySchema;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

@Data
@Schema(description = "付款申请请求参数")
public class PayApplyDTO {

    @Schema(description = "来源系统", required = true)
    @NotBlank(message = "来源系统不能为空")
    private String sourceSystem;

    @Schema(description = "付款申请批次号", required = true)
    @NotBlank(message = "付款申请批次号不能为空")
    private String applyBatchNo;

    @ArraySchema(schema = @Schema(description = "付款申请单明细"))
    @NotNull(message = "明细列表不能为空")
    @Valid
    private List<PayApplyItem> itemList;
}
